package beans.grid.midas;

import beans.grid.common.Grid;
import beans.grid.common.GridColumn;

public class CommandGroupGrid extends Grid{
	public static final String GRID_IDENTIFER = "command_group_grid";
	public static final String GRID_PAGER_ID = "command_group_grid_pager";
	public static final String GRID_SCRIPT_PATH = "/commandGroup/gridScript";
	public static final String GRID_TITLE = "Command Group Grid";
	public static final String GRID_DATA_PATH = "/commandGroup/gridData";

	public CommandGroupGrid() {
		super(GRID_DATA_PATH,GRID_IDENTIFER, GRID_PAGER_ID, GRID_TITLE,GRID_SCRIPT_PATH);
	}

	@Override
	public void constructGrid() {
		addColumns();		
	}

	@Override
	public String getGridIdentifer() {
		return GRID_IDENTIFER;
	}

	private void addColumns() {
		this.addColumn(new GridColumn("Class","class",40));
		this.addColumn(new GridColumn("Group","group",40));
		this.addColumn(new GridColumn("MML Name","mmlName",60));
		this.addColumn(new GridColumn("Version","version",40));
		this.addColumn(new GridColumn("Status","status",40));
	}
}
